<template>
  <div class="home">
    <el-button @click="goto('/pageOne')" type="primary">去往页面1</el-button>
    <el-button @click="goto('/pageTwo')" type="primary">去往页面2</el-button>
    <el-button @click="goto('/login')" type="info">去往登录页面</el-button>
  </div>
</template>

<script>
// @ is an alias to /src
export default {
  name: 'Home',
  methods: {
    goto(path) {
      this.$router.push(path)
    }
  }
}
</script>

<style scoped>
el-button {
  margin-left: 20px;
}
</style>
